package org.example.thread;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        A a = new A();

        Thread t1 = new Thread(new MyThread(a, "t11"));

        Thread t2 = new Thread(new MyThread(a, "t22"));

        t1.start();
        t2.start();
        t1.join();
        t2.join();
        System.out.println(a.getA());
    }
}
